﻿using ParkingLot6.Strategys;

namespace ParkingLot6
{
    public class ParkingLotBoy 
    {
        private IEnumerable<ParkingLot> _parkingLots;
        private readonly ICanChooseParkLot _canChooseParkLot;
        public ParkingLotBoy(ICanChooseParkLot canChooseParkLot, IEnumerable<ParkingLot> parkingLots)
        {
            _canChooseParkLot = canChooseParkLot;
            _parkingLots=parkingLots;
        }

        public ParkingLot ChooseParkLot()
        {
            return _canChooseParkLot.ChooseParkLot(_parkingLots);
        }
    }
}
